import request from '@/utils/request'

// 商品列表
// 渲染页面
export const goods = params => request({
  url: '/goods',
  params
})
// 删除数据
export const goodsDelete = id => request({
  url: `/goods/${id}`,
  method: 'delete'
})

// 商品分类
export const goodsFen =  params => request({
  url: '/categories',
  params
})

// 商品分类
export const postGoodsFen =data => request({
  url: '/categories',
  method: 'post',
  data
})




